package juc.day01;

/**
 * @author wang hao
 * @date 2023-03-06 20:04
 */
public class Demo07 {
    public static void main(String[] args) throws InterruptedException {

        Thread t = new Thread(() -> {
            while (!Thread.interrupted()){

            }
            System.out.println("t1 end ...");
        });

        t.start();
        Thread.sleep(1000);
        t.interrupt();
    }
}
